using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Alogient.Cameleon.Forms.Sdk.Items
{
    public class Date : FormElement
    {
        public DateTime? MinValue
        {
            get
            {
                if (_long1 != null)
                    return new DateTime(_long1.Value);
                else
                    return null;
            }
        }
        public DateTime? MaxValue
        {
            get
            {
                if (_long2 != null)
                    return new DateTime(_long2.Value);
                else
                    return null;
            }
        }
        public DateTime? DefaultValue
        {
            get
            {
                if (_long3 != null)
                    return new DateTime(_long3.Value);
                else
                    return null;
            }
        }
        public bool UseNow
        {
            get
            {
                if (_boolean1 == null)
                    return false;
                return _boolean1.Value;
            }
        }

        public Date(int id, string cultureCode) : base(id, cultureCode) { }
    }
}
